package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchPressureQualifiedRateStatisticsMapper;
import com.ruoyi.system.domain.DispatchPressureQualifiedRateStatistics;
import com.ruoyi.system.service.IDispatchPressureQualifiedRateStatisticsService;

/**
 * 压力合格率统计结果Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchPressureQualifiedRateStatisticsServiceImpl implements IDispatchPressureQualifiedRateStatisticsService 
{
    @Autowired
    private DispatchPressureQualifiedRateStatisticsMapper dispatchPressureQualifiedRateStatisticsMapper;

    /**
     * 查询压力合格率统计结果
     * 
     * @param pressureQualifiedRateStatisticsId 压力合格率统计结果主键
     * @return 压力合格率统计结果
     */
    @Override
    public DispatchPressureQualifiedRateStatistics selectDispatchPressureQualifiedRateStatisticsByPressureQualifiedRateStatisticsId(Long pressureQualifiedRateStatisticsId)
    {
        return dispatchPressureQualifiedRateStatisticsMapper.selectDispatchPressureQualifiedRateStatisticsByPressureQualifiedRateStatisticsId(pressureQualifiedRateStatisticsId);
    }

    /**
     * 查询压力合格率统计结果列表
     * 
     * @param dispatchPressureQualifiedRateStatistics 压力合格率统计结果
     * @return 压力合格率统计结果
     */
    @Override
    public List<DispatchPressureQualifiedRateStatistics> selectDispatchPressureQualifiedRateStatisticsList(DispatchPressureQualifiedRateStatistics dispatchPressureQualifiedRateStatistics)
    {
        return dispatchPressureQualifiedRateStatisticsMapper.selectDispatchPressureQualifiedRateStatisticsList(dispatchPressureQualifiedRateStatistics);
    }

    /**
     * 新增压力合格率统计结果
     * 
     * @param dispatchPressureQualifiedRateStatistics 压力合格率统计结果
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchPressureQualifiedRateStatistics(DispatchPressureQualifiedRateStatistics dispatchPressureQualifiedRateStatistics)
    {
        return dispatchPressureQualifiedRateStatisticsMapper.insertDispatchPressureQualifiedRateStatistics(dispatchPressureQualifiedRateStatistics);
    }

    /**
     * 修改压力合格率统计结果
     * 
     * @param dispatchPressureQualifiedRateStatistics 压力合格率统计结果
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchPressureQualifiedRateStatistics(DispatchPressureQualifiedRateStatistics dispatchPressureQualifiedRateStatistics)
    {
        return dispatchPressureQualifiedRateStatisticsMapper.updateDispatchPressureQualifiedRateStatistics(dispatchPressureQualifiedRateStatistics);
    }

    /**
     * 批量删除压力合格率统计结果
     * 
     * @param pressureQualifiedRateStatisticsIds 需要删除的压力合格率统计结果主键
     * @return 结果
     */
    @Override
    public int deleteDispatchPressureQualifiedRateStatisticsByPressureQualifiedRateStatisticsIds(Long[] pressureQualifiedRateStatisticsIds)
    {
        return dispatchPressureQualifiedRateStatisticsMapper.deleteDispatchPressureQualifiedRateStatisticsByPressureQualifiedRateStatisticsIds(pressureQualifiedRateStatisticsIds);
    }

    /**
     * 删除压力合格率统计结果信息
     * 
     * @param pressureQualifiedRateStatisticsId 压力合格率统计结果主键
     * @return 结果
     */
    @Override
    public int deleteDispatchPressureQualifiedRateStatisticsByPressureQualifiedRateStatisticsId(Long pressureQualifiedRateStatisticsId)
    {
        return dispatchPressureQualifiedRateStatisticsMapper.deleteDispatchPressureQualifiedRateStatisticsByPressureQualifiedRateStatisticsId(pressureQualifiedRateStatisticsId);
    }
}
